<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站管理后台</title>
<link rel="stylesheet" href="__PUBLIC__/Theme/Admin/style/style.css" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
</head>
<body>
<div id="wrap">
  <div id="header">
    <div id="logo"></div>
    <div id="user"><a href="">注册</a><span>|</span><a href="">登录</a></div>
    <div id="nav">
      <ul>
        <li class="nobg"><a href="<?php echo U('admin/index');?>">首页</a></li>
		<li><a href="<?php echo U('admin/user');?>">用户管理</a></li>
      </ul>
    </div>
  </div>
  <div id="mainWrap">
    <div id="main">
      <div class="blank15"></div>
      <div class="blank5"></div>
      <!--bof body-->
      <!--bof body-->
      <div id="position">当前位置:用户登录</div>
      <div class="w1156">
        <form action="" method="post" onsubmit="return checkform()" id="myform">
          <table cellpadding="0" cellspacing="10">
            <tr>
              <td width="85" align="right"></td>
              <td><span id="errmsg" style="color:red;"></span></td>
              <td></td>
            </tr>
            <tr>
              <td width="85" align="right">用户名:</td>
              <td><input name="username" id="username" validate="{required:true}" type="text" class="intxt" style="width:185px;" /></td>
              <td></td>
            </tr>
            <tr>
              <td align="right">密 码:</td>
              <td><input name="password" type="password" validate="{required:true}" id="password" class="intxt" style="width:185px;"/></td>
              <td></td>
            </tr>
            <tr>
              <td align="right">验证码:</td>
              <td><input type="text" maxlength="20" id="checkcode" name="checkcode" class="intxt" value="" style="width:185px;"/>
              </td>
              <td><img src="<?php echo U('public/verify');?>" id="verify" title="点击刷新"/></td>
            </tr>
            <tr>
              <td align="right"></td>
              <td><input type="submit" value="" class="btn_login" /></td>
              <td></td>
            </tr>
          </table>
        </form>
		<script>
		 	$('#verify').live('click', function() {
				var timenow = new Date().getTime();
				$(this).attr("src","<?php echo U('public/verify');?>#"+timenow);
			});
			$.metadata.setType("attr", "validate"); 
			//$("#myform").validate({errorElement: "em"});
			$("#myform").validate({
				errorElement: "em",
				success: "success",
				errorPlacement: function(error, element) {  
					error.appendTo(element.parent().next());  
				}
			});
			$('#myform input').keydown(function(e) {
				if (e.keyCode == 13) {
					$('#myform').submit();
				}
			});
		</script>
      </div>
      <!--eof body-->
      <!--eof body-->
      <div class="blank50"></div>
    </div>
    <div id="mainBot"></div>
  </div>
</div>
</body>
</html>